package com.egghiro.j2se.tool.srandomhunt.util;

import com.egghiro.framework.j2se.game.utils.PropertyUtils;
import com.egghiro.j2se.tool.srandomhunt.param.RandomHuntConst;

public class RandomHuntUtil {

    public static int getHRInt(String hrString) {
        try {
            return Integer.parseInt(PropertyUtils.getAIMPropertyValue(RandomHuntConst.PROPERTIES_HR, "HR_" + hrString));
        } catch (Exception e) {
            e.printStackTrace();
            return -1;
        }
    }
    
//    public static void main(String [] args){
//        System.out.println(getHRInt("S"));
//    }

}
